import turtle as tl
import time

tl.setup(500, 500, 0, 0)

tl.pensize(2)

tl.pencolor('red')


tl.penup()

tl.goto(0, 0)

tl.pendown()

a1 = (0, 100)
a2 = (100, 100)
a3 = (100, 0)
a4 = (0, 0)


tl.setheading(90)
tl.forward(100)

tl.setheading(0)
tl.forward(100)

tl.setheading(270)
tl.forward(100)

tl.setheading(180)
tl.forward(100)

tl.penup()

time.sleep(20)